Skip to content

Conversation

@xterao
Copy link
Collaborator

@xterao xterao commented May 26, 2025

Normalize the text that follows a block comment to lowercase, ensuring that literal values are detected as test data regardless of their original letter case.

@xterao xterao added this to the 0.8.0 Release milestone May 26, 2025
@xterao xterao requested a review from Copilot May 26, 2025 01:19
@xterao xterao self-assigned this May 26, 2025
@xterao xterao added bug Something isn't working fix Bug fixes labels May 26, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates test-data validation for literal directives by adding new SQL test cases and updating the DAO interface method signature accordingly.

  • Added new SQL test cases for boolean and null literal handling.
  • Updated the DAO method signature to include new parameters for literal test values.
  • Modified the SQL visitor to improve case-insensitive matching of literal values.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/test/testData/src/main/resources/META-INF/doma/example/dao/inspection/TestDataCheckDao/literalDirective.sql Added test cases for literalTrue, literalFalse, and literalNull
src/test/testData/src/main/java/doma/example/dao/inspection/TestDataCheckDao.java Updated method signature to include additional literal parameters
src/main/kotlin/org/domaframework/doma/intellij/inspection/sql/visitor/SqlTestDataAfterBlockCommentVisitor.kt Improved literal matching by normalizing case

@xterao xterao force-pushed the fix/test-data-validation branch from ba6404b to f6d8682 Compare May 26, 2025 01:22
@xterao xterao merged commit 800f813 into main May 26, 2025
3 checks passed
@xterao xterao deleted the fix/test-data-validation branch May 26, 2025 01:35
@xterao xterao linked an issue May 26, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fix Bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Test-Data Validation

2 participants